/*
* Copyright (C) 2012-2014 qar
* License: http://www.gnu.org/licenses/gpl.html GPL version 2
*/

#ifndef HASHFUNCTIONNULL_H
#define HASHFUNCTIONNULL_H

#include "crypto/hash/hashfunction.h"

class HashFunctionNull : public HashFunction
{
public:
    HashFunctionNull();
    virtual ~HashFunctionNull();

    virtual qint64 hashSize() const;
    virtual QString getAlgorithmName() const;

    // Online hash functions
    virtual void reset();
    virtual void addData(const char *data, int length);
    virtual QByteArray result() const;

    // Offline hash functions
    virtual QByteArray offlineHash(const QByteArray &data) const;

private:
    Q_DISABLE_COPY(HashFunctionNull)
};

#endif // HASHFUNCTIONNULL_H
